package com.smyh.server;

import android.os.Looper;
import android.widget.Toast;

import com.smyh.UIM.MainActivity;

/**
 * Created by Administrator on 2016/8/11.
 */
public class ToastShowMsgThread implements Runnable {
    String msg;
    public ToastShowMsgThread(String msg) {
        this.msg = msg;
    }

    @Override
    public void run() {
        Looper.prepare();
        Toast.makeText(MainActivity.context,msg,Toast.LENGTH_SHORT).show();
        Looper.loop();

    }
}
